package com.feige.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.feige.pojo.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feige.pojo.dto.RoleFormDto;
import com.feige.pojo.dto.RoleQueryDto;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author feige
 * @since 2020-07-20
 */
public interface RoleService extends IService<Role> {
    List<Role> selectRoleByUserId(Long userId);

    IPage<Role> queryListByRoleQueryDto(RoleQueryDto roleQueryDto);

    Set<String> selectRoleNameByUserId(Long userId);

    Set<String> selectAllRoleName();

    boolean saveRole(RoleFormDto roleFormDto);

    boolean updateRole(RoleFormDto roleFormDto);

    List<Long> listRoleIdByUserId(Long userId);
}
